using FluentValidation;
using Jupiter.Infrastructure.Domain;
using MediatR;
using Wips.AppService.Authorities.Positions.ViewModels;

namespace Wips.AppService.Authorities.Positions.Requests
{
    /// <summary>
    /// 创建职位请求类
    /// </summary>
    public class CreatePositionRequest : PositionViewModel, IRequest<string>, ITxRequest
    {
        /// <summary>
        /// 角色Ids
        /// </summary>
        public IList<string> RoleIds { get; set; } = new List<string>();
    }

    /// <summary>
    /// 
    /// </summary>
    public class CreatePositionValidator : AbstractValidator<CreatePositionRequest>
    {
        /// <summary>
        /// 
        /// </summary>
        public CreatePositionValidator()
        {
        }
    }
}